home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimpquerybox.h.z / gimpquerybox.h
Encoding:
C/C++ Source or Header  |  2002-07-08  |  4.4 KB  |  127 lines

  1. /* LIBGIMP - The GIMP Library 
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpquerybox.h
  5.  * Copyright (C) 1999-2000 Michael Natterer <mitch@gimp.org> 
  6.  * 
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2 of the License, or (at your option) any later version.
  11.  * 
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Lesser General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the
  19.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  * Boston, MA 02111-1307, USA.
  21.  */         
  22.  
  23. #ifndef __GIMP_QUERY_BOX_H__
  24. #define __GIMP_QUERY_BOX_H__
  25.  
  26. #include <libgimp/gimpunit.h>
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif /* __cplusplus */
  31.  
  32. /* For information look into the C source or the html documentation */
  33.  
  34.  
  35. /*  query box callback prototypes  */
  36. typedef void (* GimpQueryStringCallback)  (GtkWidget *query_box,
  37.                        gchar     *string,
  38.                        gpointer   data);
  39.  
  40. typedef void (* GimpQueryIntCallback)     (GtkWidget *query_box,
  41.                        gint       value,
  42.                        gpointer   data);
  43.  
  44. typedef void (* GimpQueryDoubleCallback)  (GtkWidget *query_box,
  45.                        gdouble    value,
  46.                        gpointer   data);
  47.  
  48. typedef void (* GimpQuerySizeCallback)    (GtkWidget *query_box,
  49.                        gdouble    size,
  50.                        GimpUnit   unit,
  51.                        gpointer   data);
  52.  
  53. typedef void (* GimpQueryBooleanCallback) (GtkWidget *query_box,
  54.                        gboolean   value,
  55.                        gpointer   data);
  56.  
  57. /*  some simple query dialogs  */
  58. GtkWidget * gimp_query_string_box  (const gchar              *title,
  59.                     GimpHelpFunc              help_func,
  60.                     const gchar              *help_data,
  61.                     const gchar              *message,
  62.                     const gchar              *initial,
  63.                     GtkObject                *object,
  64.                     const gchar              *signal,
  65.                     GimpQueryStringCallback   callback,
  66.                     gpointer                  data);
  67.  
  68. GtkWidget * gimp_query_int_box     (const gchar              *title,
  69.                     GimpHelpFunc              help_func,
  70.                     const gchar              *help_data,
  71.                     const gchar              *message,
  72.                     gint                      initial,
  73.                     gint                      lower,
  74.                     gint                      upper,
  75.                     GtkObject                *object,
  76.                     const gchar              *signal,
  77.                     GimpQueryIntCallback      callback,
  78.                     gpointer                  data);
  79.  
  80. GtkWidget * gimp_query_double_box  (const gchar              *title,
  81.                     GimpHelpFunc              help_func,
  82.                     const gchar              *help_data,
  83.                     const gchar              *message,
  84.                     gdouble                   initial,
  85.                     gdouble                   lower,
  86.                     gdouble                   upper,
  87.                     gint                      digits,
  88.                     GtkObject                *object,
  89.                     const gchar              *signal,
  90.                     GimpQueryDoubleCallback   callback,
  91.                     gpointer                  data);
  92.  
  93. GtkWidget * gimp_query_size_box    (const gchar              *title,
  94.                     GimpHelpFunc              help_func,
  95.                     const gchar              *help_data,
  96.                     const gchar              *message,
  97.                     gdouble                   initial,
  98.                     gdouble                   lower,
  99.                     gdouble                   upper,
  100.                     gint                      digits,
  101.                     GimpUnit                  unit,
  102.                     gdouble                   resolution,
  103.                     gboolean                  dot_for_dot,
  104.                     GtkObject                *object,
  105.                     const gchar              *signal,
  106.                     GimpQuerySizeCallback     callback,
  107.                     gpointer                  data);
  108.  
  109. GtkWidget * gimp_query_boolean_box (const gchar              *title,
  110.                     GimpHelpFunc              help_func,
  111.                     const gchar              *help_data,
  112.                     gboolean                  eek,
  113.                     const gchar              *message,
  114.                     const gchar              *true_button,
  115.                     const gchar              *false_button,
  116.                     GtkObject                *object,
  117.                     const gchar              *signal,
  118.                     GimpQueryBooleanCallback  callback,
  119.                     gpointer                  data);
  120.  
  121.  
  122. #ifdef __cplusplus
  123. }
  124. #endif /* __cplusplus */
  125.  
  126. #endif /* __GIMP_QUERY_BOX_H__ */
  127.